module.exports = (app) => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const Manager = app.model.define('managers', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    uuid: { type: STRING(36), unique: true },
    name: { type: STRING },
    password: { type: STRING },
    age: { type: INTEGER },
    createdAt: { type: DATE, field: 'created_at' },
    updatedAt: { type: DATE, field: 'updated_at' },
  },
  {
    tableName: 'managers'
  });

  return Manager;
};
